//分割时间和数据
function splitData(rawData) {
  var datas = [];
  var times = [];
  for (var i = 0; i < rawData.length; i++) {
	  datas.push(rawData[i]);
	  times.push(rawData[i].splice(0, 1)[0]);
  }
  return {
      datas: datas,
      times: times
  };
}
//MA计算公式
function calculateMA(dayCount,d) {
  var result = [];
  for (var i = 0, len = d.times.length; i < len; i++) {
      if (i < dayCount) {
          result.push('-');
          continue;
      }
      var sum = 0;
      for (var j = 0; j < dayCount; j++) {
          sum += d.datas[i - j][1];
      }
      result.push((sum / dayCount).toFixed(2));
  }
  return result;
}
function zhengfu(obj,index){
	/*0:涨,1:跌*/
	if(index==0){
		return 0;
	}
	if(obj[index]>obj[index-1]){
		return 0;
	}else{
		return 1;
	}
}
//获取k线图容器
var main_echart = echarts.init(document.getElementById('main_echart'));
//获取测试数据
//分时图数据时间，价格，涨跌幅，成交量
var fs_time=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199];
var fs_value1=[0.64,2.27,2.40,3.58,1.13,1.21,3.65,3.29,1.64,1.34,0.52,0.03,1.17,3.28,0.20,2.81,0.74,0.42,0.09,3.96,2.73,2.36,1.63,3.89,1.84,1.54,2.56,2.63,2.87,3.39,3.50,3.55,3.82,3.51,3.99,1.32,3.61,1.84,0.77,1.80,1.04,0.44,3.01,2.37,1.84,2.09,3.11,2.54,0.65,0.13,1.06,2.17,2.45,2.45,2.21,0.37,3.95,3.69,1.54,0.52,1.47,0.26,2.18,1.14,3.26,3.31,3.17,2.57,0.16,1.96,2.93,3.84,3.04,1.08,0.17,1.86,0.67,1.47,1.57,1.55,1.86,1.16,1.92,1.81,1.10,3.62,0.74,3.24,0.02,3.53,2.03,0.19,1.92,1.93,3.82,0.60,0.01,3.40,2.86,1.25,1.83,0.23,0.29,3.02,1.42,3.77,1.29,0.36,1.63,0.01,2.40,0.32,3.61,2.61,2.96,1.15,3.03,0.78,1.61,3.39,0.49,0.85,2.09,3.46,2.57,0.66,3.62,1.49,3.55,0.08,3.85,2.24,1.73,2.69,1.62,2.66,0.42,1.77,3.07,1.79,3.53,0.55,1.71,2.84,0.13,0.82,0.78,1.88,2.02,3.91,0.52,2.24,0.14,1.41,3.60,0.97,2.28,2.59,2.63,2.51,2.38,2.81,0.38,1.37,2.45,3.33,1.36,3.51,2.92,2.13,2.96,1.95,3.08,2.34,3.96,0.60,2.99,3.52,0.93,2.15,3.43,2.65,3.44,0.05,0.68,2.28,2.57,0.82,0.75,2.18,3.76,2.07,0.17,2.07,1.81,0.65,3.84,0.27,2.98,0.59];
var fs_value2=[-0.94,-0.20,-0.57,0.89,0.76,0.39,0.93,0.75,0.24,-0.10,-0.41,-0.90,0.24,-0.54,-0.27,-0.35,0.69,-0.28,-0.42,0.23,-0.59,0.31,-0.66,0.91,0.12,-0.65,-0.35,-0.23,0.49,0.46,-0.67,-0.63,-0.67,-0.43,-0.00,-0.11,0.70,0.85,-0.84,-0.73,0.43,-0.17,-0.83,0.96,-0.79,0.16,-0.23,-0.80,0.04,0.66,0.87,-0.86,0.80,-0.31,0.40,-0.82,-0.29,-0.64,-0.02,-0.16,-0.56,-0.34,0.88,-0.68,0.65,-0.76,-0.96,-0.01,0.00,-0.83,-0.54,0.37,0.50,-0.71,-0.42,0.06,-0.66,0.61,0.78,0.77,-0.08,0.25,0.74,0.08,0.88,-0.49,-0.92,0.50,-0.40,-0.07,0.88,-0.60,0.23,0.23,-0.55,-0.36,-0.50,-0.22,-0.33,0.41,-0.51,-0.01,-0.68,-0.51,0.72,-0.90,0.56,0.84,0.08,-0.31,-0.77,0.34,0.80,-0.38,0.63,-0.47,-0.26,0.93,0.75,0.91,0.46,-0.67,0.59,0.79,0.78,-0.62,0.25,-0.88,-0.19,0.94,0.62,-0.07,-0.11,-0.79,0.10,0.08,0.22,-0.94,-0.81,-0.72,-0.90,-0.66,-0.26,-0.91,-0.18,0.47,0.77,0.31,0.66,-0.16,0.61,-0.01,0.33,0.77,-0.28,-0.47,-0.25,-0.34,-0.48,-0.81,-0.01,-0.20,-0.89,-0.79,-0.26,0.02,-0.46,-0.24,-0.98,0.88,0.60,0.13,-0.89,-0.57,-0.45,0.98,-0.70,-0.03,-0.09,0.59,0.19,1.00,-0.19,-0.80,-0.98,0.96,0.25,-0.37,-0.15,-0.84,-0.98,-0.88,-0.98,-0.62,-0.90,-0.47,-0.02,-0.72,0.91,-0.61]
var fs_volumn=[1110,1969,101,1983,97,1202,1314,1773,1908,808,587,221,1334,1642,34,1996,900,899,1175,1983,1399,111,1604,1087,1805,773,1414,1928,138,388,136,353,575,1726,848,548,410,1127,1047,1596,1170,780,69,274,1174,1643,395,705,1833,826,1732,571,260,418,174,1097,1648,1152,1159,184,179,472,1289,518,728,1256,601,1751,753,899,265,1589,1317,1095,170,484,308,1682,1834,1623,440,668,129,448,611,13,914,1668,1373,1529,1922,1156,381,1017,1770,1231,284,1591,154,375,985,1270,127,1850,899,926,325,1990,980,880,546,1276,931,1786,1317,1204,852,458,160,1004,993,592,1884,21,852,619,492,1948,29,479,638,336,681,1366,404,1992,943,1580,112,933,124,1476,571,453,210,737,1602,318,561,1840,908,503,1090,1785,1226,1384,414,1012,1165,1431,724,540,613,1187,1582,906,925,1349,1549,1170,1528,598,854,401,232,711,1923,687,1404,495,619,738,1643,1938,1397,561,47,1393,144,657,1384,479,441,1208,292,40,1502,1989,0,958];
//日k数据
var rk_data = splitData([
	['2015-10-16', 18.4, 18.58, 18.33, 18.79],
	['2015-10-19', 18.56, 18.25, 18.19, 18.56],
	['2015-10-20', 18.3, 18.22, 18.05, 18.41],
	['2015-10-21', 18.18, 18.69, 18.02, 18.98],
	['2015-10-22', 18.42, 18.29, 18.22, 18.48],
	['2015-10-23', 18.26, 18.19, 18.08, 18.36],
	['2015-10-26', 18.33, 18.07, 17.98, 18.10],
	['2015-10-27', 18.08, 18.04, 17.88, 18.13],
	['2015-10-28', 17.96, 17.86, 17.82, 17.99],
	['2015-10-29', 17.85, 17.81, 17.8, 17.93],
	['2015-10-30', 17.79, 17.93, 17.78, 18.08],
	['2015-11-02', 17.78, 17.83, 17.78, 18.05],
	['2015-11-03', 17.84, 17.9, 17.84, 18.06],
	['2015-11-04', 17.97, 18.36, 17.85, 18.39],
	['2015-11-05', 18.3, 18.57, 18.18, 19.08],
	['2015-11-06', 18.53, 18.68, 18.3, 18.71],
	['2015-11-09', 18.75, 19.08, 18.75, 19.98],
	['2015-11-10', 18.85, 18.64, 18.56, 18.99],
	['2015-11-11', 18.64, 18.44, 18.31, 18.64],
	['2015-11-12', 18.55, 18.27, 18.17, 18.57],
	['2015-11-13', 18.13, 18.14, 18.09, 18.34],
	['2015-11-16', 18.01, 18.1, 17.93, 18.17],
	['2015-11-17', 18.2, 18.14, 18.08, 18.45],
	['2015-11-18', 18.23, 18.16, 18.0, 18.45],
	['2015-11-19', 18.08, 18.2, 18.05, 18.25],
	['2015-11-20', 18.15, 18.15, 18.11, 18.29],
	['2015-11-23', 18.16, 18.19, 18.12, 18.34],
	['2015-11-24', 18.23, 17.88, 17.7, 18.23],
	['2015-11-25', 17.85, 17.73, 17.56, 17.85],
	['2015-11-26', 17.79, 17.53, 17.5, 17.92],
	['2015-11-27', 17.51, 17.04, 16.9, 17.51],
	['2015-11-30', 17.07, 17.2, 16.98, 17.32],
	['2015-12-01', 17.28, 17.11, 16.91, 17.28],
	['2015-12-02', 17.13, 17.91, 17.05, 17.99],
	['2015-12-03', 17.8, 17.78, 17.61, 17.98],
	['2015-12-04', 17.6, 17.25, 17.13, 17.69],
	['2015-12-07', 17.2, 17.39, 17.15, 17.45],
	['2015-12-08', 17.3, 17.42, 17.18, 17.62],
	['2015-12-09', 17.33, 17.39, 17.32, 17.59],
	['2015-12-10', 17.39, 17.26, 17.21, 17.65],
	['2015-12-11', 17.23, 16.92, 16.66, 17.26],
	['2015-12-14', 16.75, 17.06, 16.5, 17.09],
	['2015-12-15', 17.03, 17.03, 16.9, 17.06],
	['2015-12-16', 17.08, 16.96, 16.87, 17.09],
	['2015-12-17', 17.0, 17.1, 16.95, 17.12],
	['2015-12-18', 17.09, 17.52, 17.04, 18.06],
	['2015-12-21', 17.43, 18.23, 17.35, 18.45],
	['2015-12-22', 18.14, 18.27, 18.06, 18.32],
	['2015-12-23', 18.28, 18.19, 18.17, 18.71],
	['2015-12-24', 18.18, 18.14, 18.01, 18.31],
	['2015-12-25', 18.22, 18.33, 18.2, 18.36],
	['2015-12-28', 18.35, 17.84, 17.8, 18.39],
	['2015-12-29', 17.83, 17.94, 17.71, 17.97],
	['2015-12-30', 17.9, 18.26, 17.55, 18.3],
	['2015-12-31', 18.12, 17.99, 17.91, 18.33],
	['2016-01-04', 17.91, 17.28, 17.16, 17.95],
	['2016-01-05', 17.17, 17.23, 17.0, 17.55],
	['2016-01-06', 17.2, 17.31, 17.06, 17.33],
	['2016-01-07', 17.15, 16.67, 16.51, 17.15],
	['2016-01-08', 16.8, 16.81, 16.61, 17.06],
	['2016-01-11', 16.68, 16.04, 16.0, 16.68],
	['2016-01-12', 16.03, 15.98, 15.88, 16.25],
	['2016-01-13', 16.21, 15.87, 15.78, 16.21],
	['2016-01-14', 15.55, 15.89, 15.52, 15.96],
	['2016-01-15', 15.87, 15.48, 15.45, 15.92],
	['2016-01-18', 15.39, 15.42, 15.36, 15.7],
	['2016-01-19', 15.58, 15.71, 15.35, 15.77],
	['2016-01-20', 15.56, 15.52, 15.24, 15.68],
	['2016-01-21', 15.41, 15.3, 15.28, 15.68],
	['2016-01-22', 15.48, 15.28, 15.13, 15.49],
	['2016-01-25', 15.29, 15.48, 15.2, 15.49],
	['2016-01-26', 15.33, 14.86, 14.78, 15.39],
	['2016-01-27', 14.96, 15.0, 14.84, 15.22],
	['2016-01-28', 14.96, 14.72, 14.62, 15.06],
	['2016-01-29', 14.75, 14.99, 14.62, 15.08],
	['2016-02-01', 14.98, 14.72, 14.48, 15.18],
	['2016-02-02', 14.65, 14.85, 14.65, 14.95],
	['2016-02-03', 14.72, 14.67, 14.55, 14.82],
	['2016-02-04', 14.79, 14.88, 14.69, 14.93],
	['2016-02-05', 14.9, 14.86, 14.78, 14.93],
	['2016-02-15', 14.5, 14.66, 14.47, 14.82],
	['2016-02-16', 14.77, 14.94, 14.72, 15.05],
	['2016-02-17', 14.95, 15.03, 14.88, 15.07],
	['2016-02-18', 14.95, 14.9, 14.87, 15.06],
	['2016-02-19', 14.9, 14.75, 14.68, 14.94],
	['2016-02-22', 14.88, 15.01, 14.79, 15.11],
	['2016-02-23', 15.01, 14.83, 14.72, 15.01],
	['2016-02-24', 14.75, 14.81, 14.67, 14.87],
	['2016-02-25', 14.81, 14.25, 14.21, 14.81],
	['2016-02-26', 14.35, 14.45, 14.28, 14.57],
	['2016-02-29', 14.43, 14.56, 14.04, 14.6],
	['2016-03-01', 14.56, 14.65, 14.36, 14.78],
	['2016-03-02', 14.79, 14.96, 14.72, 14.97],
	['2016-03-03', 14.95, 15.15, 14.91, 15.19],
	['2016-03-04', 15.14, 15.97, 15.02, 16.02],
	['2016-03-07', 15.9, 15.78, 15.65, 16.0],
	['2016-03-08', 15.78, 15.96, 15.21, 15.99],
	['2016-03-09', 15.73, 16.05, 15.41, 16.08],
	['2016-03-10', 15.82, 15.66, 15.65, 15.98],
	['2016-03-11', 15.59, 15.76, 15.42, 15.78],
	['2016-03-14', 15.78, 15.72, 15.65, 16.04],
	['2016-03-15', 15.81, 15.86, 15.6, 15.99],
	['2016-03-16', 15.88, 16.42, 15.79, 16.45],
	['2016-03-17', 16.39, 16.23, 16.11, 16.43],
	['2016-03-18', 16.39, 16.17, 16.04, 16.44],
	['2016-03-21', 16.21, 16.22, 16.11, 16.44],
	['2016-03-22', 16.27, 16.19, 16.16, 16.42],
	['2016-03-23', 16.26, 16.18, 16.18, 16.29],
	['2016-03-24', 16.18, 16.11, 16.01, 16.23],
	['2016-03-25', 16.12, 16.13, 16.1, 16.2],
	['2016-03-28', 16.15, 15.85, 15.81, 16.23],
	['2016-03-29', 15.9, 15.79, 15.76, 16.05],
	['2016-03-30', 15.79, 16.24, 15.78, 16.3],
	['2016-03-31', 16.3, 16.09, 16.02, 16.35],
	['2016-04-01', 16.18, 16.27, 15.98, 16.3],
	['2016-04-05', 16.13, 16.34, 16.07, 16.37],
	['2016-04-06', 16.21, 16.26, 16.19, 16.35],
	['2016-04-07', 16.32, 16.1, 16.05, 16.35],
	['2016-04-08', 16.0, 16.16, 15.98, 16.21],
	['2016-04-11', 16.16, 16.31, 16.15, 16.57],
	['2016-04-12', 16.41, 16.29, 16.12, 16.41],
	['2016-04-13', 16.39, 16.48, 16.0, 16.68],
	['2016-04-14', 16.5, 16.46, 16.37, 16.68],
	['2016-04-15', 16.56, 16.93, 16.46, 17.04],
	['2016-04-18', 16.76, 17.06, 16.72, 17.27],
	['2016-04-19', 17.21, 17.11, 17.02, 17.23],
	['2016-04-20', 17.11, 17.33, 16.8, 17.36],
	['2016-04-21', 17.27, 17.69, 17.17, 17.93],
	['2016-04-22', 17.6, 17.87, 17.56, 18.02],
	['2016-04-25', 17.75, 17.9, 17.41, 17.96],
	['2016-04-26', 17.81, 17.91, 17.6, 17.95],
	['2016-04-27', 17.9, 17.88, 17.81, 17.95],
	['2016-04-28', 17.93, 17.88, 17.67, 17.93],
	['2016-04-29', 17.87, 17.75, 17.73, 17.92],
	['2016-05-03', 17.79, 17.7, 17.56, 17.85],
	['2016-05-04', 17.7, 17.65, 17.59, 17.71],
	['2016-05-05', 17.65, 17.62, 17.46, 17.7],
	['2016-05-06', 17.62, 17.32, 17.3, 17.65],
	['2016-05-09', 17.33, 17.3, 17.21, 17.45],
	['2016-05-10', 17.11, 17.04, 16.98, 17.41],
	['2016-05-11', 17.06, 17.15, 17.06, 17.32],
	['2016-05-12', 17.02, 17.46, 17.02, 17.58],
	['2016-05-13', 17.41, 17.57, 17.34, 17.62],
	['2016-05-16', 17.55, 17.5, 17.48, 17.64],
	['2016-05-17', 17.49, 17.48, 17.39, 17.53],
	['2016-05-18', 17.41, 17.82, 17.39, 17.87],
	['2016-05-19', 17.74, 17.81, 17.67, 17.86],
	['2016-05-20', 17.76, 17.88, 17.7, 17.93],
	['2016-05-23', 17.88, 17.52, 17.48, 17.97],
	['2016-05-24', 17.51, 17.33, 17.32, 17.51],
	['2016-05-25', 17.59, 17.55, 17.44, 17.59],
	['2016-05-26', 17.5, 17.69, 17.5, 17.8],
	['2016-05-27', 17.77, 17.66, 17.62, 17.77],
	['2016-05-30', 17.75, 17.84, 17.62, 17.87],
	['2016-05-31', 17.88, 18.0, 17.81, 18.03],
	['2016-06-01', 18.09, 17.83, 17.73, 18.09],
	['2016-06-02', 17.82, 17.73, 17.66, 17.88],
	['2016-06-03', 17.8, 17.78, 17.71, 17.83],
	['2016-06-06', 17.73, 17.64, 17.56, 17.83],
	['2016-06-07', 17.76, 17.8, 17.59, 17.87],
	['2016-06-08', 17.75, 17.77, 17.65, 17.84],
	['2016-06-13', 17.58, 17.32, 17.29, 17.79],
	['2016-06-14', 17.33, 17.38, 17.29, 17.5,],
	['2016-06-15', 17.25, 17.39, 17.25, 17.46],
	['2016-06-16', 17.26, 17.4, 17.26, 17.46],
	['2016-06-17', 17.38, 17.5, 17.37, 17.67],
	['2016-06-20', 17.62, 17.51, 17.42, 17.63],
	['2016-06-21', 17.53, 17.54, 17.5, 17.7],
	['2016-06-22', 17.5, 17.5, 17.46, 17.6],
	['2016-06-23', 17.52, 17.26, 17.24, 17.53],
	['2016-06-24', 17.26, 17.25, 17.18, 17.38],
	['2016-06-27', 17.25, 17.28, 17.18, 17.33],
	['2016-06-28', 17.25, 17.29, 17.21, 17.32],
	['2016-06-29', 17.31, 17.45, 17.27, 17.49],
	['2016-06-30', 17.47, 17.5, 17.39, 17.55],
	['2016-07-01', 17.5, 17.63, 17.49, 17.66],
	['2016-07-04', 17.63, 17.72, 17.63, 17.92],
	['2016-07-05', 17.79, 17.56, 17.45, 17.79],
	['2016-07-06', 17.53, 17.42, 17.31, 17.54],
	['2016-07-07', 17.41, 17.51, 17.35, 17.52],
	['2016-07-08', 17.5, 17.39, 17.35, 17.51],
	['2016-07-11', 17.49, 17.48, 17.4, 17.55],
	['2016-07-12', 17.48, 17.71, 17.46, 17.75],
	['2016-07-13', 17.13, 17.05, 17.02, 17.39],
	['2016-07-14', 17.07, 17.09, 17.0, 17.16],
	['2016-07-15', 17.08, 17.14, 17.08, 17.17],
	['2016-07-18', 17.15, 17.26, 17.13, 17.49],
	['2016-07-19', 17.26, 17.12, 17.09, 17.33],
	['2016-07-20', 17.1, 17.07, 17.02, 17.14],
	['2016-07-21', 17.07, 17.24, 17.07, 17.27],
	['2016-07-22', 17.25, 17.08, 17.03, 17.25],
	['2016-07-25', 17.09, 17.12, 17.01, 17.18],
	['2016-07-26', 17.05, 17.17, 17.05, 17.2],
	['2016-07-27', 17.2, 17.37, 16.89, 17.38],
	['2016-07-28', 17.19, 17.14, 17.09, 17.29],
	['2016-07-29', 17.15, 17.16, 17.04, 17.23],
	['2016-08-01', 17.15, 17.18, 17.1, 17.24],
	['2016-08-02', 17.21, 17.15, 17.12, 17.2],
	['2016-08-03', 17.08, 17.07, 17.01, 17.16],
	['2016-08-04', 17.11, 17.06, 16.98, 17.12],
	['2016-08-05', 17.06, 17.1, 17.05, 17.15],
	['2016-08-08', 17.14, 17.13, 17.07, 17.15],
	['2016-08-09', 17.13, 17.17, 17.1, 17.2],
	['2016-08-10', 17.17, 17.28, 17.15, 17.29],
	['2016-08-11', 17.3, 17.45, 17.26, 17.87],
	['2016-08-12', 17.51, 17.99, 17.47, 18.0],
	['2016-08-15', 18.1, 18.42, 18.02, 18.99],
	['2016-08-16', 18.64, 18.31, 18.12, 18.87],
	['2016-08-17', 18.43, 18.4, 18.31, 18.68],
	['2016-08-18', 18.33, 18.23, 18.13, 18.65],
	['2016-08-19', 18.34, 18.62, 18.31, 18.75],
	['2016-08-22', 18.62, 18.69, 18.51, 18.8],
	['2016-08-23', 18.61, 18.66, 18.52, 19.0],
	['2016-08-24', 18.66, 18.62, 18.43, 18.7],
	['2016-08-25', 18.57, 18.51, 18.19, 18.64],
	['2016-08-26', 18.49, 18.55, 18.44, 18.6],
	['2016-08-29', 18.46, 18.27, 18.03, 18.48],
	['2016-08-30', 18.24, 18.44, 18.23, 18.52],
	['2016-08-31', 18.36, 18.63, 18.36, 18.76],
	['2016-09-01', 18.6, 18.62, 18.55, 18.78],
	['2016-09-02', 18.52, 18.68, 18.48, 18.72],
	['2016-09-05', 18.68, 18.75, 18.57, 18.82],
	['2016-09-06', 18.75, 18.51, 18.43, 18.78],
	['2016-09-07', 18.51, 18.56, 18.4, 18.62],
	['2016-09-08', 18.58, 18.53, 18.48, 18.63],
	['2016-09-09', 18.52, 18.33, 18.31, 18.57],
	['2016-09-12', 18.16, 17.9, 17.81, 18.18],
	['2016-09-13', 17.91, 17.91, 17.9, 18.08],
	['2016-09-14', 17.99, 17.54, 17.48, 17.99],
	['2016-09-19', 17.55, 17.81, 17.55, 17.88],
	['2016-09-20', 17.8, 17.74, 17.67, 17.85],
	['2016-09-21', 17.75, 17.88, 17.75, 17.95],
	['2016-09-22', 17.99, 17.97, 17.88, 18.17],
	['2016-09-23', 17.99, 17.98, 17.93, 18.09],
	['2016-09-26', 17.91, 18.0, 17.85, 18.09],
	['2016-09-27', 17.97, 18.07, 17.94, 18.1],
	['2016-09-28', 18.06, 17.89, 17.83, 18.06],
	['2016-09-29', 17.96, 18.0, 17.92, 18.07],
	['2016-09-30', 17.96, 18.0, 17.95, 18.1],
	['2016-10-10', 18.03, 18.3, 18.03, 18.38],
	['2016-10-11', 18.33, 18.33, 18.26, 18.49],
	['2016-10-12', 18.28, 18.15, 18.1, 18.31],
	['2016-10-13', 18.15, 18.09, 18.05, 18.21],
	['2016-10-14', 18.1, 18.1, 18.0, 18.15],
	['2016-10-17', 18.07, 17.86, 17.83, 18.1],
	['2016-10-18', 17.86, 17.93, 17.84, 17.99],
	['2016-10-19', 17.93, 17.88, 17.83, 18.05],
	['2016-10-20', 17.9, 17.89, 17.83, 17.98],
	['2016-10-21', 17.91, 17.91, 17.82, 17.99],
	['2016-10-24', 17.93, 18.31, 17.86, 18.42],
	['2016-10-25', 18.31, 18.13, 18.09, 18.46],
	['2016-10-26', 18.12, 17.97, 17.95, 18.15],
	['2016-10-27', 18.06, 17.81, 17.77, 18.06],
	['2016-10-28', 17.8, 17.9, 17.8, 18.05],
	['2016-10-31', 17.87, 17.86, 17.72, 17.96],
	['2016-11-01', 17.87, 17.98, 17.79, 17.99],
	['2016-11-02', 17.86, 17.84, 17.76, 17.94],
	['2016-11-03', 17.83, 17.93, 17.79, 17.97],
	['2016-11-04', 17.9, 17.91, 17.87, 18.0],
	['2016-11-07', 17.91, 17.89, 17.85, 17.93],
	['2016-11-08', 17.92, 17.99, 17.89, 18.06],
	['2016-11-09', 18.0, 17.89, 17.77, 18.08],
	['2016-11-10', 17.95, 18.0, 17.94, 18.11],
	['2016-11-11', 17.95, 18.02, 17.93, 18.08],
	['2016-11-14', 18.0, 18.04, 17.95, 18.25],
	['2016-11-15', 18.1, 18.18, 18.03, 18.24],
	['2016-11-16', 18.23, 18.12, 18.05, 18.29],
	['2016-11-17', 18.11, 18.12, 18.01, 18.14],
	['2016-11-18', 18.12, 18.1, 18.03, 18.16],
	['2016-11-21', 18.08, 18.34, 18.08, 18.68],
	['2016-11-22', 18.37, 18.37, 18.28, 18.49],
	['2016-11-23', 18.4, 18.84, 18.37, 18.9],
	['2016-11-24', 18.77, 18.74, 18.61, 18.97],
	['2016-11-25', 18.8, 18.99, 18.66, 19.02],
	['2016-11-28', 19.1, 18.65, 18.52, 19.2],
	['2016-11-29', 18.65, 18.75, 18.51, 18.76],
	['2016-11-30', 18.76, 18.55, 18.47, 18.82],
	['2016-12-01', 18.55, 18.49, 18.41, 18.64],
	['2016-12-02', 18.53, 18.49, 18.24, 18.54],
	['2016-12-05', 18.39, 18.66, 18.34, 18.67],
	['2016-12-06', 18.66, 18.6, 18.57, 18.78],
	['2016-12-07', 18.65, 18.62, 18.58, 18.71],
	['2016-12-08', 18.67, 18.76, 18.62, 18.88],
	['2016-12-09', 18.76, 19.2, 18.75, 19.34],
	['2016-12-12', 19.16, 19.25, 18.9, 19.65],
	['2016-12-13', 19.09, 18.88, 18.81, 19.2],
	['2016-12-14', 18.8, 18.82, 18.8, 19.14],
	['2016-12-15', 18.73, 18.24, 18.2, 18.73],
	['2016-12-16', 18.24, 18.18, 18.12, 18.4],
	['2016-12-19', 18.15, 18.01, 17.93, 18.18],
	['2016-12-20', 17.99, 17.79, 17.7, 17.99],
	['2016-12-21', 17.83, 17.81, 17.77, 17.98],
	['2016-12-22', 17.85, 17.72, 17.65, 17.85],
	['2016-12-23', 17.77, 17.6, 17.54, 17.77],
	['2016-12-26', 17.56, 17.75, 17.39, 17.77],
	['2016-12-27', 17.73, 17.71, 17.65, 17.82],
	['2016-12-28', 17.72, 17.62, 17.49, 17.77],
	['2016-12-29', 17.6, 17.49, 17.43, 17.62],
	['2016-12-30', 17.53, 17.6, 17.47, 17.61],
	['2017-01-03', 17.6, 17.92, 17.57, 17.98]
]);
var rk_volumn = [769,1347,1915,1705,1009,1041,918,884,1683,994,1997,996,1267,102,1916,1206,1695,58,432,1997,1040,824,1534,328,852,1982,563,1726,1883,1218,34,1341,374,1,1847,336,1639,1969,1450,1708,1624,995,257,1190,1507,1575,471,795,1747,1327,1127,55,191,1376,175,1869,1270,1457,591,1956,154,1749,645,602,1525,121,1410,1814,746,1938,1495,681,544,937,1431,1546,1073,1961,674,1965,1487,829,303,190,1723,1745,762,1280,991,1897,200,1113,602,1976,51,1537,1329,1236,1355,1835,1175,1464,1229,1662,763,13,340,968,1848,1167,640,767,1548,484,1287,1276,1631,373,35,813,1652,528,505,387,1945,888,937,789,737,4,716,1084,1976,201,1254,1347,1220,348,985,1878,1123,306,1809,310,1687,893,1313,744,921,1074,1095,646,430,1059,562,1257,1320,556,1211,674,821,585,1592,993,1963,1505,1589,127,1454,1035,1631,1721,1456,749,1670,1116,1715,695,876,540,1665,88,234,1981,12,1209,1867,653,641,1752,75,43,1106,705,104,1812,804,1335,816,17,1626,1143,204,1401,1281,1809,1591,1422,430,1163,1256,1532,1861,718,1739,1825,201,1638,668,505,282,1909,611,174,1253,1178,1511,1613,422,980,823,273,16,324,223,487,1812,254,300,1039,39,1756,302,1196,9,556,126,1189,14,830,112,1783,1507,770,813,553,969,257,1950,322,1407,1627,1865,97,50,1570,967,488,1589,694,771,1681,50,1288,520,367,570,118,425,252,55,721,552,1170,1414,851,1079,211,457,125,1475,1063,1537,1144,574,1384,1941,37,1633,1291];
//周k数据
var zk_data = splitData([
	['2015-10-16', 18.4, 18.58, 18.33, 18.79],
	['2015-10-19', 18.56, 18.25, 18.19, 18.56],
	['2015-10-20', 18.3, 18.22, 18.05, 18.41],
	['2015-10-21', 18.18, 18.69, 18.02, 18.98],
	['2015-10-22', 18.42, 18.29, 18.22, 18.48],
	['2015-10-23', 18.26, 18.19, 18.08, 18.36],
	['2015-10-26', 18.33, 18.07, 17.98, 18.10],
	['2015-10-27', 18.08, 18.04, 17.88, 18.13],
	['2015-10-28', 17.96, 17.86, 17.82, 17.99],
	['2015-10-29', 17.85, 17.81, 17.8, 17.93],
	['2015-10-30', 17.79, 17.93, 17.78, 18.08],
	['2015-11-02', 17.78, 17.83, 17.78, 18.05],
	['2015-11-03', 17.84, 17.9, 17.84, 18.06],
	['2015-11-04', 17.97, 18.36, 17.85, 18.39],
	['2015-11-05', 18.3, 18.57, 18.18, 19.08],
	['2015-11-06', 18.53, 18.68, 18.3, 18.71],
	['2015-11-09', 18.75, 19.08, 18.75, 19.98],
	['2015-11-10', 18.85, 18.64, 18.56, 18.99],
	['2015-11-11', 18.64, 18.44, 18.31, 18.64],
	['2015-11-12', 18.55, 18.27, 18.17, 18.57],
	['2015-11-13', 18.13, 18.14, 18.09, 18.34],
	['2015-11-16', 18.01, 18.1, 17.93, 18.17],
	['2015-11-17', 18.2, 18.14, 18.08, 18.45],
	['2015-11-18', 18.23, 18.16, 18.0, 18.45],
	['2015-11-19', 18.08, 18.2, 18.05, 18.25],
	['2015-11-20', 18.15, 18.15, 18.11, 18.29],
	['2015-11-23', 18.16, 18.19, 18.12, 18.34],
	['2015-11-24', 18.23, 17.88, 17.7, 18.23],
	['2015-11-25', 17.85, 17.73, 17.56, 17.85],
	['2015-11-26', 17.79, 17.53, 17.5, 17.92],
	['2015-11-27', 17.51, 17.04, 16.9, 17.51],
	['2015-11-30', 17.07, 17.2, 16.98, 17.32],
	['2015-12-01', 17.28, 17.11, 16.91, 17.28],
	['2015-12-02', 17.13, 17.91, 17.05, 17.99],
	['2015-12-03', 17.8, 17.78, 17.61, 17.98],
	['2015-12-04', 17.6, 17.25, 17.13, 17.69],
	['2015-12-07', 17.2, 17.39, 17.15, 17.45],
	['2015-12-08', 17.3, 17.42, 17.18, 17.62],
	['2015-12-09', 17.33, 17.39, 17.32, 17.59],
	['2015-12-10', 17.39, 17.26, 17.21, 17.65],
	['2015-12-11', 17.23, 16.92, 16.66, 17.26],
	['2015-12-14', 16.75, 17.06, 16.5, 17.09],
	['2015-12-15', 17.03, 17.03, 16.9, 17.06],
	['2015-12-16', 17.08, 16.96, 16.87, 17.09],
	['2015-12-17', 17.0, 17.1, 16.95, 17.12],
	['2015-12-18', 17.09, 17.52, 17.04, 18.06],
	['2015-12-21', 17.43, 18.23, 17.35, 18.45],
	['2015-12-22', 18.14, 18.27, 18.06, 18.32],
	['2015-12-23', 18.28, 18.19, 18.17, 18.71],
	['2015-12-24', 18.18, 18.14, 18.01, 18.31],
	['2015-12-25', 18.22, 18.33, 18.2, 18.36],
	['2015-12-28', 18.35, 17.84, 17.8, 18.39],
	['2015-12-29', 17.83, 17.94, 17.71, 17.97],
	['2015-12-30', 17.9, 18.26, 17.55, 18.3],
	['2015-12-31', 18.12, 17.99, 17.91, 18.33],
	['2016-01-04', 17.91, 17.28, 17.16, 17.95],
	['2016-01-05', 17.17, 17.23, 17.0, 17.55],
	['2016-01-06', 17.2, 17.31, 17.06, 17.33],
	['2016-01-07', 17.15, 16.67, 16.51, 17.15],
	['2016-01-08', 16.8, 16.81, 16.61, 17.06],
	['2016-01-11', 16.68, 16.04, 16.0, 16.68],
	['2016-01-12', 16.03, 15.98, 15.88, 16.25],
	['2016-01-13', 16.21, 15.87, 15.78, 16.21],
	['2016-01-14', 15.55, 15.89, 15.52, 15.96],
	['2016-01-15', 15.87, 15.48, 15.45, 15.92],
	['2016-01-18', 15.39, 15.42, 15.36, 15.7],
	['2016-01-19', 15.58, 15.71, 15.35, 15.77],
	['2016-01-20', 15.56, 15.52, 15.24, 15.68],
	['2016-01-21', 15.41, 15.3, 15.28, 15.68],
	['2016-01-22', 15.48, 15.28, 15.13, 15.49],
	['2016-01-25', 15.29, 15.48, 15.2, 15.49],
	['2016-01-26', 15.33, 14.86, 14.78, 15.39],
	['2016-01-27', 14.96, 15.0, 14.84, 15.22],
	['2016-01-28', 14.96, 14.72, 14.62, 15.06],
	['2016-01-29', 14.75, 14.99, 14.62, 15.08],
	['2016-02-01', 14.98, 14.72, 14.48, 15.18],
	['2016-02-02', 14.65, 14.85, 14.65, 14.95],
	['2016-02-03', 14.72, 14.67, 14.55, 14.82],
	['2016-02-04', 14.79, 14.88, 14.69, 14.93],
	['2016-02-05', 14.9, 14.86, 14.78, 14.93],
	['2016-02-15', 14.5, 14.66, 14.47, 14.82],
	['2016-02-16', 14.77, 14.94, 14.72, 15.05],
	['2016-02-17', 14.95, 15.03, 14.88, 15.07],
	['2016-02-18', 14.95, 14.9, 14.87, 15.06],
	['2016-02-19', 14.9, 14.75, 14.68, 14.94],
	['2016-02-22', 14.88, 15.01, 14.79, 15.11],
	['2016-02-23', 15.01, 14.83, 14.72, 15.01],
	['2016-02-24', 14.75, 14.81, 14.67, 14.87],
	['2016-02-25', 14.81, 14.25, 14.21, 14.81],
	['2016-02-26', 14.35, 14.45, 14.28, 14.57],
	['2016-02-29', 14.43, 14.56, 14.04, 14.6],
	['2016-03-01', 14.56, 14.65, 14.36, 14.78],
	['2016-03-02', 14.79, 14.96, 14.72, 14.97],
	['2016-03-03', 14.95, 15.15, 14.91, 15.19],
	['2016-03-04', 15.14, 15.97, 15.02, 16.02],
	['2016-03-07', 15.9, 15.78, 15.65, 16.0],
	['2016-03-08', 15.78, 15.96, 15.21, 15.99],
	['2016-03-09', 15.73, 16.05, 15.41, 16.08],
	['2016-03-10', 15.82, 15.66, 15.65, 15.98],
	['2016-03-11', 15.59, 15.76, 15.42, 15.78],
	['2016-03-14', 15.78, 15.72, 15.65, 16.04],
	['2016-03-15', 15.81, 15.86, 15.6, 15.99],
	['2016-03-16', 15.88, 16.42, 15.79, 16.45],
	['2016-03-17', 16.39, 16.23, 16.11, 16.43],
	['2016-03-18', 16.39, 16.17, 16.04, 16.44],
	['2016-03-21', 16.21, 16.22, 16.11, 16.44],
	['2016-03-22', 16.27, 16.19, 16.16, 16.42],
	['2016-03-23', 16.26, 16.18, 16.18, 16.29],
	['2016-03-24', 16.18, 16.11, 16.01, 16.23],
	['2016-03-25', 16.12, 16.13, 16.1, 16.2],
	['2016-03-28', 16.15, 15.85, 15.81, 16.23],
	['2016-03-29', 15.9, 15.79, 15.76, 16.05],
	['2016-03-30', 15.79, 16.24, 15.78, 16.3],
	['2016-03-31', 16.3, 16.09, 16.02, 16.35],
	['2016-04-01', 16.18, 16.27, 15.98, 16.3],
	['2016-04-05', 16.13, 16.34, 16.07, 16.37],
	['2016-04-06', 16.21, 16.26, 16.19, 16.35],
	['2016-04-07', 16.32, 16.1, 16.05, 16.35],
	['2016-04-08', 16.0, 16.16, 15.98, 16.21],
	['2016-04-11', 16.16, 16.31, 16.15, 16.57],
	['2016-04-12', 16.41, 16.29, 16.12, 16.41],
	['2016-04-13', 16.39, 16.48, 16.0, 16.68],
	['2016-04-14', 16.5, 16.46, 16.37, 16.68],
	['2016-04-15', 16.56, 16.93, 16.46, 17.04],
	['2016-04-18', 16.76, 17.06, 16.72, 17.27],
	['2016-04-19', 17.21, 17.11, 17.02, 17.23],
	['2016-04-20', 17.11, 17.33, 16.8, 17.36],
	['2016-04-21', 17.27, 17.69, 17.17, 17.93],
	['2016-04-22', 17.6, 17.87, 17.56, 18.02],
	['2016-04-25', 17.75, 17.9, 17.41, 17.96],
	['2016-04-26', 17.81, 17.91, 17.6, 17.95],
	['2016-04-27', 17.9, 17.88, 17.81, 17.95],
	['2016-04-28', 17.93, 17.88, 17.67, 17.93],
	['2016-04-29', 17.87, 17.75, 17.73, 17.92],
	['2016-05-03', 17.79, 17.7, 17.56, 17.85],
	['2016-05-04', 17.7, 17.65, 17.59, 17.71],
	['2016-05-05', 17.65, 17.62, 17.46, 17.7],
	['2016-05-06', 17.62, 17.32, 17.3, 17.65],
	['2016-05-09', 17.33, 17.3, 17.21, 17.45],
	['2016-05-10', 17.11, 17.04, 16.98, 17.41],
	['2016-05-11', 17.06, 17.15, 17.06, 17.32],
	['2016-05-12', 17.02, 17.46, 17.02, 17.58],
	['2016-05-13', 17.41, 17.57, 17.34, 17.62],
	['2016-05-16', 17.55, 17.5, 17.48, 17.64],
	['2016-05-17', 17.49, 17.48, 17.39, 17.53],
	['2016-05-18', 17.41, 17.82, 17.39, 17.87],
	['2016-05-19', 17.74, 17.81, 17.67, 17.86],
	['2016-05-20', 17.76, 17.88, 17.7, 17.93],
	['2016-05-23', 17.88, 17.52, 17.48, 17.97],
	['2016-05-24', 17.51, 17.33, 17.32, 17.51],
	['2016-05-25', 17.59, 17.55, 17.44, 17.59],
	['2016-05-26', 17.5, 17.69, 17.5, 17.8],
	['2016-05-27', 17.77, 17.66, 17.62, 17.77],
	['2016-05-30', 17.75, 17.84, 17.62, 17.87],
	['2016-05-31', 17.88, 18.0, 17.81, 18.03],
	['2016-06-01', 18.09, 17.83, 17.73, 18.09],
	['2016-06-02', 17.82, 17.73, 17.66, 17.88],
	['2016-06-03', 17.8, 17.78, 17.71, 17.83],
	['2016-06-06', 17.73, 17.64, 17.56, 17.83],
	['2016-06-07', 17.76, 17.8, 17.59, 17.87],
	['2016-06-08', 17.75, 17.77, 17.65, 17.84],
	['2016-06-13', 17.58, 17.32, 17.29, 17.79],
	['2016-06-14', 17.33, 17.38, 17.29, 17.5,],
	['2016-06-15', 17.25, 17.39, 17.25, 17.46],
	['2016-06-16', 17.26, 17.4, 17.26, 17.46],
	['2016-06-17', 17.38, 17.5, 17.37, 17.67],
	['2016-06-20', 17.62, 17.51, 17.42, 17.63],
	['2016-06-21', 17.53, 17.54, 17.5, 17.7],
	['2016-06-22', 17.5, 17.5, 17.46, 17.6],
	['2016-06-23', 17.52, 17.26, 17.24, 17.53],
	['2016-06-24', 17.26, 17.25, 17.18, 17.38],
	['2016-06-27', 17.25, 17.28, 17.18, 17.33],
	['2016-06-28', 17.25, 17.29, 17.21, 17.32],
	['2016-06-29', 17.31, 17.45, 17.27, 17.49],
	['2016-06-30', 17.47, 17.5, 17.39, 17.55],
	['2016-07-01', 17.5, 17.63, 17.49, 17.66],
	['2016-07-04', 17.63, 17.72, 17.63, 17.92],
	['2016-07-05', 17.79, 17.56, 17.45, 17.79],
	['2016-07-06', 17.53, 17.42, 17.31, 17.54],
	['2016-07-07', 17.41, 17.51, 17.35, 17.52],
	['2016-07-08', 17.5, 17.39, 17.35, 17.51],
	['2016-07-11', 17.49, 17.48, 17.4, 17.55],
	['2016-07-12', 17.48, 17.71, 17.46, 17.75],
	['2016-07-13', 17.13, 17.05, 17.02, 17.39],
	['2016-07-14', 17.07, 17.09, 17.0, 17.16],
	['2016-07-15', 17.08, 17.14, 17.08, 17.17],
	['2016-07-18', 17.15, 17.26, 17.13, 17.49],
	['2016-07-19', 17.26, 17.12, 17.09, 17.33],
	['2016-07-20', 17.1, 17.07, 17.02, 17.14],
	['2016-07-21', 17.07, 17.24, 17.07, 17.27],
	['2016-07-22', 17.25, 17.08, 17.03, 17.25],
	['2016-07-25', 17.09, 17.12, 17.01, 17.18],
	['2016-07-26', 17.05, 17.17, 17.05, 17.2],
	['2016-07-27', 17.2, 17.37, 16.89, 17.38],
	['2016-07-28', 17.19, 17.14, 17.09, 17.29],
	['2016-07-29', 17.15, 17.16, 17.04, 17.23],
	['2016-08-01', 17.15, 17.18, 17.1, 17.24],
	['2016-08-02', 17.21, 17.15, 17.12, 17.2],
	['2016-08-03', 17.08, 17.07, 17.01, 17.16],
	['2016-08-04', 17.11, 17.06, 16.98, 17.12],
	['2016-08-05', 17.06, 17.1, 17.05, 17.15],
	['2016-08-08', 17.14, 17.13, 17.07, 17.15],
	['2016-08-09', 17.13, 17.17, 17.1, 17.2],
	['2016-08-10', 17.17, 17.28, 17.15, 17.29],
	['2016-08-11', 17.3, 17.45, 17.26, 17.87],
	['2016-08-12', 17.51, 17.99, 17.47, 18.0],
	['2016-08-15', 18.1, 18.42, 18.02, 18.99],
	['2016-08-16', 18.64, 18.31, 18.12, 18.87],
	['2016-08-17', 18.43, 18.4, 18.31, 18.68],
	['2016-08-18', 18.33, 18.23, 18.13, 18.65],
	['2016-08-19', 18.34, 18.62, 18.31, 18.75],
	['2016-08-22', 18.62, 18.69, 18.51, 18.8],
	['2016-08-23', 18.61, 18.66, 18.52, 19.0],
	['2016-08-24', 18.66, 18.62, 18.43, 18.7],
	['2016-08-25', 18.57, 18.51, 18.19, 18.64],
	['2016-08-26', 18.49, 18.55, 18.44, 18.6],
	['2016-08-29', 18.46, 18.27, 18.03, 18.48],
	['2016-08-30', 18.24, 18.44, 18.23, 18.52],
	['2016-08-31', 18.36, 18.63, 18.36, 18.76],
	['2016-09-01', 18.6, 18.62, 18.55, 18.78],
	['2016-09-02', 18.52, 18.68, 18.48, 18.72],
	['2016-09-05', 18.68, 18.75, 18.57, 18.82],
	['2016-09-06', 18.75, 18.51, 18.43, 18.78],
	['2016-09-07', 18.51, 18.56, 18.4, 18.62],
	['2016-09-08', 18.58, 18.53, 18.48, 18.63],
	['2016-09-09', 18.52, 18.33, 18.31, 18.57],
	['2016-09-12', 18.16, 17.9, 17.81, 18.18],
	['2016-09-13', 17.91, 17.91, 17.9, 18.08],
	['2016-09-14', 17.99, 17.54, 17.48, 17.99],
	['2016-09-19', 17.55, 17.81, 17.55, 17.88],
	['2016-09-20', 17.8, 17.74, 17.67, 17.85],
	['2016-09-21', 17.75, 17.88, 17.75, 17.95],
	['2016-09-22', 17.99, 17.97, 17.88, 18.17],
	['2016-09-23', 17.99, 17.98, 17.93, 18.09],
	['2016-09-26', 17.91, 18.0, 17.85, 18.09],
	['2016-09-27', 17.97, 18.07, 17.94, 18.1],
	['2016-09-28', 18.06, 17.89, 17.83, 18.06],
	['2016-09-29', 17.96, 18.0, 17.92, 18.07],
	['2016-09-30', 17.96, 18.0, 17.95, 18.1],
	['2016-10-10', 18.03, 18.3, 18.03, 18.38],
	['2016-10-11', 18.33, 18.33, 18.26, 18.49],
	['2016-10-12', 18.28, 18.15, 18.1, 18.31],
	['2016-10-13', 18.15, 18.09, 18.05, 18.21],
	['2016-10-14', 18.1, 18.1, 18.0, 18.15],
	['2016-10-17', 18.07, 17.86, 17.83, 18.1],
	['2016-10-18', 17.86, 17.93, 17.84, 17.99],
	['2016-10-19', 17.93, 17.88, 17.83, 18.05],
	['2016-10-20', 17.9, 17.89, 17.83, 17.98],
	['2016-10-21', 17.91, 17.91, 17.82, 17.99],
	['2016-10-24', 17.93, 18.31, 17.86, 18.42],
	['2016-10-25', 18.31, 18.13, 18.09, 18.46],
	['2016-10-26', 18.12, 17.97, 17.95, 18.15],
	['2016-10-27', 18.06, 17.81, 17.77, 18.06],
	['2016-10-28', 17.8, 17.9, 17.8, 18.05],
	['2016-10-31', 17.87, 17.86, 17.72, 17.96],
	['2016-11-01', 17.87, 17.98, 17.79, 17.99],
	['2016-11-02', 17.86, 17.84, 17.76, 17.94],
	['2016-11-03', 17.83, 17.93, 17.79, 17.97],
	['2016-11-04', 17.9, 17.91, 17.87, 18.0],
	['2016-11-07', 17.91, 17.89, 17.85, 17.93],
	['2016-11-08', 17.92, 17.99, 17.89, 18.06],
	['2016-11-09', 18.0, 17.89, 17.77, 18.08],
	['2016-11-10', 17.95, 18.0, 17.94, 18.11],
	['2016-11-11', 17.95, 18.02, 17.93, 18.08],
	['2016-11-14', 18.0, 18.04, 17.95, 18.25],
	['2016-11-15', 18.1, 18.18, 18.03, 18.24],
	['2016-11-16', 18.23, 18.12, 18.05, 18.29],
	['2016-11-17', 18.11, 18.12, 18.01, 18.14],
	['2016-11-18', 18.12, 18.1, 18.03, 18.16],
	['2016-11-21', 18.08, 18.34, 18.08, 18.68],
	['2016-11-22', 18.37, 18.37, 18.28, 18.49],
	['2016-11-23', 18.4, 18.84, 18.37, 18.9],
	['2016-11-24', 18.77, 18.74, 18.61, 18.97],
	['2016-11-25', 18.8, 18.99, 18.66, 19.02],
	['2016-11-28', 19.1, 18.65, 18.52, 19.2],
	['2016-11-29', 18.65, 18.75, 18.51, 18.76],
	['2016-11-30', 18.76, 18.55, 18.47, 18.82],
	['2016-12-01', 18.55, 18.49, 18.41, 18.64],
	['2016-12-02', 18.53, 18.49, 18.24, 18.54],
	['2016-12-05', 18.39, 18.66, 18.34, 18.67],
	['2016-12-06', 18.66, 18.6, 18.57, 18.78],
	['2016-12-07', 18.65, 18.62, 18.58, 18.71],
	['2016-12-08', 18.67, 18.76, 18.62, 18.88],
	['2016-12-09', 18.76, 19.2, 18.75, 19.34],
	['2016-12-12', 19.16, 19.25, 18.9, 19.65],
	['2016-12-13', 19.09, 18.88, 18.81, 19.2],
	['2016-12-14', 18.8, 18.82, 18.8, 19.14],
	['2016-12-15', 18.73, 18.24, 18.2, 18.73],
	['2016-12-16', 18.24, 18.18, 18.12, 18.4],
	['2016-12-19', 18.15, 18.01, 17.93, 18.18],
	['2016-12-20', 17.99, 17.79, 17.7, 17.99],
	['2016-12-21', 17.83, 17.81, 17.77, 17.98],
	['2016-12-22', 17.85, 17.72, 17.65, 17.85],
	['2016-12-23', 17.77, 17.6, 17.54, 17.77],
	['2016-12-26', 17.56, 17.75, 17.39, 17.77],
	['2016-12-27', 17.73, 17.71, 17.65, 17.82],
	['2016-12-28', 17.72, 17.62, 17.49, 17.77],
	['2016-12-29', 17.6, 17.49, 17.43, 17.62],
	['2016-12-30', 17.53, 17.6, 17.47, 17.61],
	['2017-01-03', 17.6, 17.92, 17.57, 17.98]
]);
var zk_volumn = [769,1347,1915,1705,1009,1041,918,884,1683,994,1997,996,1267,102,1916,1206,1695,58,432,1997,1040,824,1534,328,852,1982,563,1726,1883,1218,34,1341,374,1,1847,336,1639,1969,1450,1708,1624,995,257,1190,1507,1575,471,795,1747,1327,1127,55,191,1376,175,1869,1270,1457,591,1956,154,1749,645,602,1525,121,1410,1814,746,1938,1495,681,544,937,1431,1546,1073,1961,674,1965,1487,829,303,190,1723,1745,762,1280,991,1897,200,1113,602,1976,51,1537,1329,1236,1355,1835,1175,1464,1229,1662,763,13,340,968,1848,1167,640,767,1548,484,1287,1276,1631,373,35,813,1652,528,505,387,1945,888,937,789,737,4,716,1084,1976,201,1254,1347,1220,348,985,1878,1123,306,1809,310,1687,893,1313,744,921,1074,1095,646,430,1059,562,1257,1320,556,1211,674,821,585,1592,993,1963,1505,1589,127,1454,1035,1631,1721,1456,749,1670,1116,1715,695,876,540,1665,88,234,1981,12,1209,1867,653,641,1752,75,43,1106,705,104,1812,804,1335,816,17,1626,1143,204,1401,1281,1809,1591,1422,430,1163,1256,1532,1861,718,1739,1825,201,1638,668,505,282,1909,611,174,1253,1178,1511,1613,422,980,823,273,16,324,223,487,1812,254,300,1039,39,1756,302,1196,9,556,126,1189,14,830,112,1783,1507,770,813,553,969,257,1950,322,1407,1627,1865,97,50,1570,967,488,1589,694,771,1681,50,1288,520,367,570,118,425,252,55,721,552,1170,1414,851,1079,211,457,125,1475,1063,1537,1144,574,1384,1941,37,1633,1291];
//月k数据
var yk_data = splitData([
	['2015-10-16', 18.4, 18.58, 18.33, 18.79],
	['2015-10-19', 18.56, 18.25, 18.19, 18.56],
	['2015-10-20', 18.3, 18.22, 18.05, 18.41],
	['2015-10-21', 18.18, 18.69, 18.02, 18.98],
	['2015-10-22', 18.42, 18.29, 18.22, 18.48],
	['2015-10-23', 18.26, 18.19, 18.08, 18.36],
	['2015-10-26', 18.33, 18.07, 17.98, 18.10],
	['2015-10-27', 18.08, 18.04, 17.88, 18.13],
	['2015-10-28', 17.96, 17.86, 17.82, 17.99],
	['2015-10-29', 17.85, 17.81, 17.8, 17.93],
	['2015-10-30', 17.79, 17.93, 17.78, 18.08],
	['2015-11-02', 17.78, 17.83, 17.78, 18.05],
	['2015-11-03', 17.84, 17.9, 17.84, 18.06],
	['2015-11-04', 17.97, 18.36, 17.85, 18.39],
	['2015-11-05', 18.3, 18.57, 18.18, 19.08],
	['2015-11-06', 18.53, 18.68, 18.3, 18.71],
	['2015-11-09', 18.75, 19.08, 18.75, 19.98],
	['2015-11-10', 18.85, 18.64, 18.56, 18.99],
	['2015-11-11', 18.64, 18.44, 18.31, 18.64],
	['2015-11-12', 18.55, 18.27, 18.17, 18.57],
	['2015-11-13', 18.13, 18.14, 18.09, 18.34],
	['2015-11-16', 18.01, 18.1, 17.93, 18.17],
	['2015-11-17', 18.2, 18.14, 18.08, 18.45],
	['2015-11-18', 18.23, 18.16, 18.0, 18.45],
	['2015-11-19', 18.08, 18.2, 18.05, 18.25],
	['2015-11-20', 18.15, 18.15, 18.11, 18.29],
	['2015-11-23', 18.16, 18.19, 18.12, 18.34],
	['2015-11-24', 18.23, 17.88, 17.7, 18.23],
	['2015-11-25', 17.85, 17.73, 17.56, 17.85],
	['2015-11-26', 17.79, 17.53, 17.5, 17.92],
	['2015-11-27', 17.51, 17.04, 16.9, 17.51],
	['2015-11-30', 17.07, 17.2, 16.98, 17.32],
	['2015-12-01', 17.28, 17.11, 16.91, 17.28],
	['2015-12-02', 17.13, 17.91, 17.05, 17.99],
	['2015-12-03', 17.8, 17.78, 17.61, 17.98],
	['2015-12-04', 17.6, 17.25, 17.13, 17.69],
	['2015-12-07', 17.2, 17.39, 17.15, 17.45],
	['2015-12-08', 17.3, 17.42, 17.18, 17.62],
	['2015-12-09', 17.33, 17.39, 17.32, 17.59],
	['2015-12-10', 17.39, 17.26, 17.21, 17.65],
	['2015-12-11', 17.23, 16.92, 16.66, 17.26],
	['2015-12-14', 16.75, 17.06, 16.5, 17.09],
	['2015-12-15', 17.03, 17.03, 16.9, 17.06],
	['2015-12-16', 17.08, 16.96, 16.87, 17.09],
	['2015-12-17', 17.0, 17.1, 16.95, 17.12],
	['2015-12-18', 17.09, 17.52, 17.04, 18.06],
	['2015-12-21', 17.43, 18.23, 17.35, 18.45],
	['2015-12-22', 18.14, 18.27, 18.06, 18.32],
	['2015-12-23', 18.28, 18.19, 18.17, 18.71],
	['2015-12-24', 18.18, 18.14, 18.01, 18.31],
	['2015-12-25', 18.22, 18.33, 18.2, 18.36],
	['2015-12-28', 18.35, 17.84, 17.8, 18.39],
	['2015-12-29', 17.83, 17.94, 17.71, 17.97],
	['2015-12-30', 17.9, 18.26, 17.55, 18.3],
	['2015-12-31', 18.12, 17.99, 17.91, 18.33],
	['2016-01-04', 17.91, 17.28, 17.16, 17.95],
	['2016-01-05', 17.17, 17.23, 17.0, 17.55],
	['2016-01-06', 17.2, 17.31, 17.06, 17.33],
	['2016-01-07', 17.15, 16.67, 16.51, 17.15],
	['2016-01-08', 16.8, 16.81, 16.61, 17.06],
	['2016-01-11', 16.68, 16.04, 16.0, 16.68],
	['2016-01-12', 16.03, 15.98, 15.88, 16.25],
	['2016-01-13', 16.21, 15.87, 15.78, 16.21],
	['2016-01-14', 15.55, 15.89, 15.52, 15.96],
	['2016-01-15', 15.87, 15.48, 15.45, 15.92],
	['2016-01-18', 15.39, 15.42, 15.36, 15.7],
	['2016-01-19', 15.58, 15.71, 15.35, 15.77],
	['2016-01-20', 15.56, 15.52, 15.24, 15.68],
	['2016-01-21', 15.41, 15.3, 15.28, 15.68],
	['2016-01-22', 15.48, 15.28, 15.13, 15.49],
	['2016-01-25', 15.29, 15.48, 15.2, 15.49],
	['2016-01-26', 15.33, 14.86, 14.78, 15.39],
	['2016-01-27', 14.96, 15.0, 14.84, 15.22],
	['2016-01-28', 14.96, 14.72, 14.62, 15.06],
	['2016-01-29', 14.75, 14.99, 14.62, 15.08],
	['2016-02-01', 14.98, 14.72, 14.48, 15.18],
	['2016-02-02', 14.65, 14.85, 14.65, 14.95],
	['2016-02-03', 14.72, 14.67, 14.55, 14.82],
	['2016-02-04', 14.79, 14.88, 14.69, 14.93],
	['2016-02-05', 14.9, 14.86, 14.78, 14.93],
	['2016-02-15', 14.5, 14.66, 14.47, 14.82],
	['2016-02-16', 14.77, 14.94, 14.72, 15.05],
	['2016-02-17', 14.95, 15.03, 14.88, 15.07],
	['2016-02-18', 14.95, 14.9, 14.87, 15.06],
	['2016-02-19', 14.9, 14.75, 14.68, 14.94],
	['2016-02-22', 14.88, 15.01, 14.79, 15.11],
	['2016-02-23', 15.01, 14.83, 14.72, 15.01],
	['2016-02-24', 14.75, 14.81, 14.67, 14.87],
	['2016-02-25', 14.81, 14.25, 14.21, 14.81],
	['2016-02-26', 14.35, 14.45, 14.28, 14.57],
	['2016-02-29', 14.43, 14.56, 14.04, 14.6],
	['2016-03-01', 14.56, 14.65, 14.36, 14.78],
	['2016-03-02', 14.79, 14.96, 14.72, 14.97],
	['2016-03-03', 14.95, 15.15, 14.91, 15.19],
	['2016-03-04', 15.14, 15.97, 15.02, 16.02],
	['2016-03-07', 15.9, 15.78, 15.65, 16.0],
	['2016-03-08', 15.78, 15.96, 15.21, 15.99],
	['2016-03-09', 15.73, 16.05, 15.41, 16.08],
	['2016-03-10', 15.82, 15.66, 15.65, 15.98],
	['2016-03-11', 15.59, 15.76, 15.42, 15.78],
	['2016-03-14', 15.78, 15.72, 15.65, 16.04],
	['2016-03-15', 15.81, 15.86, 15.6, 15.99],
	['2016-03-16', 15.88, 16.42, 15.79, 16.45],
	['2016-03-17', 16.39, 16.23, 16.11, 16.43],
	['2016-03-18', 16.39, 16.17, 16.04, 16.44],
	['2016-03-21', 16.21, 16.22, 16.11, 16.44],
	['2016-03-22', 16.27, 16.19, 16.16, 16.42],
	['2016-03-23', 16.26, 16.18, 16.18, 16.29],
	['2016-03-24', 16.18, 16.11, 16.01, 16.23],
	['2016-03-25', 16.12, 16.13, 16.1, 16.2],
	['2016-03-28', 16.15, 15.85, 15.81, 16.23],
	['2016-03-29', 15.9, 15.79, 15.76, 16.05],
	['2016-03-30', 15.79, 16.24, 15.78, 16.3],
	['2016-03-31', 16.3, 16.09, 16.02, 16.35],
	['2016-04-01', 16.18, 16.27, 15.98, 16.3],
	['2016-04-05', 16.13, 16.34, 16.07, 16.37],
	['2016-04-06', 16.21, 16.26, 16.19, 16.35],
	['2016-04-07', 16.32, 16.1, 16.05, 16.35],
	['2016-04-08', 16.0, 16.16, 15.98, 16.21],
	['2016-04-11', 16.16, 16.31, 16.15, 16.57],
	['2016-04-12', 16.41, 16.29, 16.12, 16.41],
	['2016-04-13', 16.39, 16.48, 16.0, 16.68],
	['2016-04-14', 16.5, 16.46, 16.37, 16.68],
	['2016-04-15', 16.56, 16.93, 16.46, 17.04],
	['2016-04-18', 16.76, 17.06, 16.72, 17.27],
	['2016-04-19', 17.21, 17.11, 17.02, 17.23],
	['2016-04-20', 17.11, 17.33, 16.8, 17.36],
	['2016-04-21', 17.27, 17.69, 17.17, 17.93],
	['2016-04-22', 17.6, 17.87, 17.56, 18.02],
	['2016-04-25', 17.75, 17.9, 17.41, 17.96],
	['2016-04-26', 17.81, 17.91, 17.6, 17.95],
	['2016-04-27', 17.9, 17.88, 17.81, 17.95],
	['2016-04-28', 17.93, 17.88, 17.67, 17.93],
	['2016-04-29', 17.87, 17.75, 17.73, 17.92],
	['2016-05-03', 17.79, 17.7, 17.56, 17.85],
	['2016-05-04', 17.7, 17.65, 17.59, 17.71],
	['2016-05-05', 17.65, 17.62, 17.46, 17.7],
	['2016-05-06', 17.62, 17.32, 17.3, 17.65],
	['2016-05-09', 17.33, 17.3, 17.21, 17.45],
	['2016-05-10', 17.11, 17.04, 16.98, 17.41],
	['2016-05-11', 17.06, 17.15, 17.06, 17.32],
	['2016-05-12', 17.02, 17.46, 17.02, 17.58],
	['2016-05-13', 17.41, 17.57, 17.34, 17.62],
	['2016-05-16', 17.55, 17.5, 17.48, 17.64],
	['2016-05-17', 17.49, 17.48, 17.39, 17.53],
	['2016-05-18', 17.41, 17.82, 17.39, 17.87],
	['2016-05-19', 17.74, 17.81, 17.67, 17.86],
	['2016-05-20', 17.76, 17.88, 17.7, 17.93],
	['2016-05-23', 17.88, 17.52, 17.48, 17.97],
	['2016-05-24', 17.51, 17.33, 17.32, 17.51],
	['2016-05-25', 17.59, 17.55, 17.44, 17.59],
	['2016-05-26', 17.5, 17.69, 17.5, 17.8],
	['2016-05-27', 17.77, 17.66, 17.62, 17.77],
	['2016-05-30', 17.75, 17.84, 17.62, 17.87],
	['2016-05-31', 17.88, 18.0, 17.81, 18.03],
	['2016-06-01', 18.09, 17.83, 17.73, 18.09],
	['2016-06-02', 17.82, 17.73, 17.66, 17.88],
	['2016-06-03', 17.8, 17.78, 17.71, 17.83],
	['2016-06-06', 17.73, 17.64, 17.56, 17.83],
	['2016-06-07', 17.76, 17.8, 17.59, 17.87],
	['2016-06-08', 17.75, 17.77, 17.65, 17.84],
	['2016-06-13', 17.58, 17.32, 17.29, 17.79],
	['2016-06-14', 17.33, 17.38, 17.29, 17.5,],
	['2016-06-15', 17.25, 17.39, 17.25, 17.46],
	['2016-06-16', 17.26, 17.4, 17.26, 17.46],
	['2016-06-17', 17.38, 17.5, 17.37, 17.67],
	['2016-06-20', 17.62, 17.51, 17.42, 17.63],
	['2016-06-21', 17.53, 17.54, 17.5, 17.7],
	['2016-06-22', 17.5, 17.5, 17.46, 17.6],
	['2016-06-23', 17.52, 17.26, 17.24, 17.53],
	['2016-06-24', 17.26, 17.25, 17.18, 17.38],
	['2016-06-27', 17.25, 17.28, 17.18, 17.33],
	['2016-06-28', 17.25, 17.29, 17.21, 17.32],
	['2016-06-29', 17.31, 17.45, 17.27, 17.49],
	['2016-06-30', 17.47, 17.5, 17.39, 17.55],
	['2016-07-01', 17.5, 17.63, 17.49, 17.66],
	['2016-07-04', 17.63, 17.72, 17.63, 17.92],
	['2016-07-05', 17.79, 17.56, 17.45, 17.79],
	['2016-07-06', 17.53, 17.42, 17.31, 17.54],
	['2016-07-07', 17.41, 17.51, 17.35, 17.52],
	['2016-07-08', 17.5, 17.39, 17.35, 17.51],
	['2016-07-11', 17.49, 17.48, 17.4, 17.55],
	['2016-07-12', 17.48, 17.71, 17.46, 17.75],
	['2016-07-13', 17.13, 17.05, 17.02, 17.39],
	['2016-07-14', 17.07, 17.09, 17.0, 17.16],
	['2016-07-15', 17.08, 17.14, 17.08, 17.17],
	['2016-07-18', 17.15, 17.26, 17.13, 17.49],
	['2016-07-19', 17.26, 17.12, 17.09, 17.33],
	['2016-07-20', 17.1, 17.07, 17.02, 17.14],
	['2016-07-21', 17.07, 17.24, 17.07, 17.27],
	['2016-07-22', 17.25, 17.08, 17.03, 17.25],
	['2016-07-25', 17.09, 17.12, 17.01, 17.18],
	['2016-07-26', 17.05, 17.17, 17.05, 17.2],
	['2016-07-27', 17.2, 17.37, 16.89, 17.38],
	['2016-07-28', 17.19, 17.14, 17.09, 17.29],
	['2016-07-29', 17.15, 17.16, 17.04, 17.23],
	['2016-08-01', 17.15, 17.18, 17.1, 17.24],
	['2016-08-02', 17.21, 17.15, 17.12, 17.2],
	['2016-08-03', 17.08, 17.07, 17.01, 17.16],
	['2016-08-04', 17.11, 17.06, 16.98, 17.12],
	['2016-08-05', 17.06, 17.1, 17.05, 17.15],
	['2016-08-08', 17.14, 17.13, 17.07, 17.15],
	['2016-08-09', 17.13, 17.17, 17.1, 17.2],
	['2016-08-10', 17.17, 17.28, 17.15, 17.29],
	['2016-08-11', 17.3, 17.45, 17.26, 17.87],
	['2016-08-12', 17.51, 17.99, 17.47, 18.0],
	['2016-08-15', 18.1, 18.42, 18.02, 18.99],
	['2016-08-16', 18.64, 18.31, 18.12, 18.87],
	['2016-08-17', 18.43, 18.4, 18.31, 18.68],
	['2016-08-18', 18.33, 18.23, 18.13, 18.65],
	['2016-08-19', 18.34, 18.62, 18.31, 18.75],
	['2016-08-22', 18.62, 18.69, 18.51, 18.8],
	['2016-08-23', 18.61, 18.66, 18.52, 19.0],
	['2016-08-24', 18.66, 18.62, 18.43, 18.7],
	['2016-08-25', 18.57, 18.51, 18.19, 18.64],
	['2016-08-26', 18.49, 18.55, 18.44, 18.6],
	['2016-08-29', 18.46, 18.27, 18.03, 18.48],
	['2016-08-30', 18.24, 18.44, 18.23, 18.52],
	['2016-08-31', 18.36, 18.63, 18.36, 18.76],
	['2016-09-01', 18.6, 18.62, 18.55, 18.78],
	['2016-09-02', 18.52, 18.68, 18.48, 18.72],
	['2016-09-05', 18.68, 18.75, 18.57, 18.82],
	['2016-09-06', 18.75, 18.51, 18.43, 18.78],
	['2016-09-07', 18.51, 18.56, 18.4, 18.62],
	['2016-09-08', 18.58, 18.53, 18.48, 18.63],
	['2016-09-09', 18.52, 18.33, 18.31, 18.57],
	['2016-09-12', 18.16, 17.9, 17.81, 18.18],
	['2016-09-13', 17.91, 17.91, 17.9, 18.08],
	['2016-09-14', 17.99, 17.54, 17.48, 17.99],
	['2016-09-19', 17.55, 17.81, 17.55, 17.88],
	['2016-09-20', 17.8, 17.74, 17.67, 17.85],
	['2016-09-21', 17.75, 17.88, 17.75, 17.95],
	['2016-09-22', 17.99, 17.97, 17.88, 18.17],
	['2016-09-23', 17.99, 17.98, 17.93, 18.09],
	['2016-09-26', 17.91, 18.0, 17.85, 18.09],
	['2016-09-27', 17.97, 18.07, 17.94, 18.1],
	['2016-09-28', 18.06, 17.89, 17.83, 18.06],
	['2016-09-29', 17.96, 18.0, 17.92, 18.07],
	['2016-09-30', 17.96, 18.0, 17.95, 18.1],
	['2016-10-10', 18.03, 18.3, 18.03, 18.38],
	['2016-10-11', 18.33, 18.33, 18.26, 18.49],
	['2016-10-12', 18.28, 18.15, 18.1, 18.31],
	['2016-10-13', 18.15, 18.09, 18.05, 18.21],
	['2016-10-14', 18.1, 18.1, 18.0, 18.15],
	['2016-10-17', 18.07, 17.86, 17.83, 18.1],
	['2016-10-18', 17.86, 17.93, 17.84, 17.99],
	['2016-10-19', 17.93, 17.88, 17.83, 18.05],
	['2016-10-20', 17.9, 17.89, 17.83, 17.98],
	['2016-10-21', 17.91, 17.91, 17.82, 17.99],
	['2016-10-24', 17.93, 18.31, 17.86, 18.42],
	['2016-10-25', 18.31, 18.13, 18.09, 18.46],
	['2016-10-26', 18.12, 17.97, 17.95, 18.15],
	['2016-10-27', 18.06, 17.81, 17.77, 18.06],
	['2016-10-28', 17.8, 17.9, 17.8, 18.05],
	['2016-10-31', 17.87, 17.86, 17.72, 17.96],
	['2016-11-01', 17.87, 17.98, 17.79, 17.99],
	['2016-11-02', 17.86, 17.84, 17.76, 17.94],
	['2016-11-03', 17.83, 17.93, 17.79, 17.97],
	['2016-11-04', 17.9, 17.91, 17.87, 18.0],
	['2016-11-07', 17.91, 17.89, 17.85, 17.93],
	['2016-11-08', 17.92, 17.99, 17.89, 18.06],
	['2016-11-09', 18.0, 17.89, 17.77, 18.08],
	['2016-11-10', 17.95, 18.0, 17.94, 18.11],
	['2016-11-11', 17.95, 18.02, 17.93, 18.08],
	['2016-11-14', 18.0, 18.04, 17.95, 18.25],
	['2016-11-15', 18.1, 18.18, 18.03, 18.24],
	['2016-11-16', 18.23, 18.12, 18.05, 18.29],
	['2016-11-17', 18.11, 18.12, 18.01, 18.14],
	['2016-11-18', 18.12, 18.1, 18.03, 18.16],
	['2016-11-21', 18.08, 18.34, 18.08, 18.68],
	['2016-11-22', 18.37, 18.37, 18.28, 18.49],
	['2016-11-23', 18.4, 18.84, 18.37, 18.9],
	['2016-11-24', 18.77, 18.74, 18.61, 18.97],
	['2016-11-25', 18.8, 18.99, 18.66, 19.02],
	['2016-11-28', 19.1, 18.65, 18.52, 19.2],
	['2016-11-29', 18.65, 18.75, 18.51, 18.76],
	['2016-11-30', 18.76, 18.55, 18.47, 18.82],
	['2016-12-01', 18.55, 18.49, 18.41, 18.64],
	['2016-12-02', 18.53, 18.49, 18.24, 18.54],
	['2016-12-05', 18.39, 18.66, 18.34, 18.67],
	['2016-12-06', 18.66, 18.6, 18.57, 18.78],
	['2016-12-07', 18.65, 18.62, 18.58, 18.71],
	['2016-12-08', 18.67, 18.76, 18.62, 18.88],
	['2016-12-09', 18.76, 19.2, 18.75, 19.34],
	['2016-12-12', 19.16, 19.25, 18.9, 19.65],
	['2016-12-13', 19.09, 18.88, 18.81, 19.2],
	['2016-12-14', 18.8, 18.82, 18.8, 19.14],
	['2016-12-15', 18.73, 18.24, 18.2, 18.73],
	['2016-12-16', 18.24, 18.18, 18.12, 18.4],
	['2016-12-19', 18.15, 18.01, 17.93, 18.18],
	['2016-12-20', 17.99, 17.79, 17.7, 17.99],
	['2016-12-21', 17.83, 17.81, 17.77, 17.98],
	['2016-12-22', 17.85, 17.72, 17.65, 17.85],
	['2016-12-23', 17.77, 17.6, 17.54, 17.77],
	['2016-12-26', 17.56, 17.75, 17.39, 17.77],
	['2016-12-27', 17.73, 17.71, 17.65, 17.82],
	['2016-12-28', 17.72, 17.62, 17.49, 17.77],
	['2016-12-29', 17.6, 17.49, 17.43, 17.62],
	['2016-12-30', 17.53, 17.6, 17.47, 17.61],
	['2017-01-03', 17.6, 17.92, 17.57, 17.98]
]);
var yk_volumn = [769,1347,1915,1705,1009,1041,918,884,1683,994,1997,996,1267,102,1916,1206,1695,58,432,1997,1040,824,1534,328,852,1982,563,1726,1883,1218,34,1341,374,1,1847,336,1639,1969,1450,1708,1624,995,257,1190,1507,1575,471,795,1747,1327,1127,55,191,1376,175,1869,1270,1457,591,1956,154,1749,645,602,1525,121,1410,1814,746,1938,1495,681,544,937,1431,1546,1073,1961,674,1965,1487,829,303,190,1723,1745,762,1280,991,1897,200,1113,602,1976,51,1537,1329,1236,1355,1835,1175,1464,1229,1662,763,13,340,968,1848,1167,640,767,1548,484,1287,1276,1631,373,35,813,1652,528,505,387,1945,888,937,789,737,4,716,1084,1976,201,1254,1347,1220,348,985,1878,1123,306,1809,310,1687,893,1313,744,921,1074,1095,646,430,1059,562,1257,1320,556,1211,674,821,585,1592,993,1963,1505,1589,127,1454,1035,1631,1721,1456,749,1670,1116,1715,695,876,540,1665,88,234,1981,12,1209,1867,653,641,1752,75,43,1106,705,104,1812,804,1335,816,17,1626,1143,204,1401,1281,1809,1591,1422,430,1163,1256,1532,1861,718,1739,1825,201,1638,668,505,282,1909,611,174,1253,1178,1511,1613,422,980,823,273,16,324,223,487,1812,254,300,1039,39,1756,302,1196,9,556,126,1189,14,830,112,1783,1507,770,813,553,969,257,1950,322,1407,1627,1865,97,50,1570,967,488,1589,694,771,1681,50,1288,520,367,570,118,425,252,55,721,552,1170,1414,851,1079,211,457,125,1475,1063,1537,1144,574,1384,1941,37,1633,1291];

//每个组件的配置
var config = {
	col: {
		up: '#ed4834',//涨
		down:'#5ecb74',//跌
		price_line:'#b88b54',//分时图价格（折线线条）
		price_area:'#f5f2ed',//分时图（折线面积）
		zhangdiefu:'#9b9b9b',//分时图涨跌幅折线线条
	},
	st: 0,
	ed: 100,
	day_st:80,
	day_end:100
}
var fs_option = {
	backgroundColor: '#ffffff',
	tooltip: {
		trigger:
		'axis',
		axisPointer: {
			type: 'cross',
			lable: {
				show: false,
			}
		},
		formatter: function (param) {
			var time = param[0].axisValueLabel + '<br />';//时间
			var jg,zdf,xl;
			for(var i = 0;i <param.length;i++){
				if(param[i].seriesName=="价格"){
					jg =param[i].marker+param[i].seriesName+"："+param[i].data+"<br />";
				}else if(param[i].seriesName=="涨跌幅"){
					zdf =param[i].marker+param[i].seriesName+"："+param[i].data+"%<br />";
				}else if(param[i].seriesName=="销量"){
					xl =param[i].marker+param[i].seriesName+"："+param[i].data+"<br />";
				}
			}
			return time+jg+zdf+xl;
		}
	},
	axisPointer: {
		link: {
			xAxisIndex: 'all'
		},
		label: {
			backgroundColor: '#777'
		},
	},
	grid: [{
			left: '0',
			right:'0',
			top: '15',
			height: '71%'
		},{
			left: '0',
			right:'0',
			top: '75%',
			bottom:'10',
			height: '18%'
	}],
	xAxis: [{
		type: 'category',
		data: fs_time,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: { //x轴分割线
			show: false,
		},
		axisLine: { //x轴
			show:true,
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
		
		axisLabel:{//x轴刻度值
			show:false
		},
		axisPointer:{//不显示指示器文本
			label:{
				show:false,
			}
		}
		
	},{
		type: 'category',
		gridIndex: 1,
		data: fs_time,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: {//x轴分割线
			show: false,
			lineStyle:{
				color:'#2c3e50',
			},
		},
		axisLabel: {
			show: true,
			fontSize:10,
		},
		axisLine: {//x轴
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},

	}],
	yAxis: [{
		axisLine: {//y轴
			show:false
		},
		splitLine:{//y轴分割线（横）
			show:false,
		},
		axisLabel:{
			inside:true,
			verticalAlign:'bottom',
			fontSize:10,
			color:"#000000"
		},
		position: 'left'//y轴的位置
	},{
		axisLine: {//y轴
			show:false
		},
		splitLine:{//y轴分割线（横）
			show:false,
		},
		axisLabel:{
			show:false,
		},
		position: 'right'//y轴的位置
	},{
		gridIndex: 1,
		splitLine: {
			show: false
		},
		max: function(value) {
		    return value.max+1000;
		},
		axisLabel:{
			show:false,
			inside:true,
		},
		axisLine: {
			show:false,
			lineStyle: {
				color: '#728681'

			}
		},
		position: 'left'
	}],
	series: [{
        type: 'line',
        name: '价格',
        symbol: 'none',
        sampling: 'average',
        animation:false,
        data: fs_value1,
       	lineStyle: {
			normal: {
				color: config.col.price_line,
				width: 1
			}
		},
		areaStyle: {
           color:config.col.price_area,
        },
        itemStyle: {
            normal: {
                color:config.col.price_line,
            }
        },
        
    },{
		type:'line',
		name: '涨跌幅',
        symbol: 'none',
        sampling: 'average',
        yAxisIndex: 1,
        data: fs_value2,
        animation:false,
        lineStyle: {
			normal: {
				color: config.col.zhangdiefu,
				width: 1
			}
		},
        itemStyle: {
            normal: {
                color: config.col.zhangdiefu
            }
        },
	}, {
        name: '销量',
        type: 'bar',
        xAxisIndex:1,
        yAxisIndex:2,
        animation:false,
        data: fs_volumn,
        itemStyle: {
	    	normal: {
		        color: function(params) {
		            var colorList;
		            if (zhengfu(fs_value1,params.dataIndex)==0) {
		                colorList = config.col.up;
		            } else {
		                colorList = config.col.down;
		            }
		            return colorList;
		        },
		    }
	    }
    }]
};
var rk_option={
	backgroundColor: '#ffffff',
	tooltip: {
		trigger:'axis',
		triggerOn:'click',
		axisPointer: {
			type: 'cross',
			lable: {
				show: false,
			}
		},
		position: function (pos, params, el, elRect, size) {
            var obj = {top: 10};
            obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
            return obj;
        },
        textStyle:{
        	fontSize: 10,
        },
		formatter: function (param) {
			var open,close,height,low,ma5,ma10,ma20,ma30,vol;
			var time = "<div>"+param[0].axisValueLabel +"</div>";//时间
			for(var i = 0;i < param.length;i++){
				if(param[i].seriesName=="k"){
					open="<div>"+param[i].marker+"开："+param[i].data[1]+"</div>";
					close="<div>"+param[i].marker+"收："+param[i].data[2]+"</div>";
					low="<div>"+param[i].marker+"高："+param[i].data[3]+"</div>";
					height="<div>"+param[i].marker+"低："+param[i].data[4]+"</div>";
				}else if(param[i].seriesName=="MA5"){
					ma5="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA10"){
					ma10="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA20"){
					ma20="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA30"){
					ma30="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="Volumn"){
					vol="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}
			}
			return "<div class='tooltip'>"+time+"<div class='t_row'>"+open+close+"</div><div class='t_row'>"+low+height+"</div><div class='t_row'>"+ma5+ma10+"</div><div class='t_row'>"+ma20+ma30+"</div>"+vol+"</div>";
		}
	},
	dataZoom: {
		show: false,
		xAxisIndex: [0, 1],
		type: 'inside',
		minValueSpan:60,
        start: config.day_st,
		end: config.day_end,
	},
	axisPointer: {
		link: {
			xAxisIndex: 'all'
		},
		label: {
			backgroundColor: '#777'
		},
	},
	grid: [{
			left: '0',
			right:'0',
			top: '15',
			height: '71%'
		},{
			left: '0',
			right:'0',
			top: '80%',
			bottom:'10',
			height: '13%'
	}],
	xAxis: [{
		type : 'category',
		data: rk_data.times,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: { //x轴分割线
			show: false,
		},
		axisLine: { //x轴
			show:true,
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
		
		axisLabel:{//x轴刻度值
			show:false
		},
		axisPointer:{//不显示指示器文本
			label:{
				show:false,
			}
		}
		
	},{
		type : 'category',
		gridIndex: 1,
		data:rk_data.times,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: {//x轴分割线
			show: false,
			lineStyle:{
				color:'#2c3e50',
			},
		},
		axisLabel: {
			show: true,
			fontSize:10,
		},
		axisLine: {//x轴
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
	
	}],
	yAxis: [{
		axisLine: {//y轴
			show:false
		},
		splitLine:{//y轴分割线（横）
			show:false,
		},
		axisLabel:{
			inside:true,
			verticalAlign:'bottom',
			fontSize:10,
			color:"#000000"
		},
		max: function(value) {
		    return value.max+1;
		},
		min: function(value) {
		    return value.min-1;
		},
		position: 'left'//y轴的位置
	},{
		gridIndex: 1,
		splitLine: {
			show: false
		},
		max: function(value) {
		    return value.max+1000-1000;
		},
		axisLabel:{
			show:true,
			inside:true,
			showMinLabel:false,
			color:"#000000",
			fontSize:10,
			verticalAlign:'bottom',
		},
		axisLine: {
			show:false,
			lineStyle: {
				color: '#728681'
	
			}
		},
		splitNumber:1,
		position: 'left'
	}],
	series: [{
		type: 'k', //Candlestick 
		name:"k",
		itemStyle: {
			normal: {
				color: config.col.up, //阳线填充色
				color0: config.col.down,
				borderColor: config.col.up, //阳线边框色
				borderColor0: config.col.down
			}
		},
		data: rk_data.datas,
		animation:false,
		markPoint: {
			symbol:'rect',
			symbolSize:[10,10],
			label:{
				color:"#000000"
			},
			itemStyle:{
				color:'#ffffff',
			},
            data: [{
                name: 'highest value',
                type: 'max',
                valueDim: 'highest'
            },{
                name: 'lowest value',
                type: 'min',
                valueDim: 'lowest'
            }]
        }
	},{
		type: 'line',
		name: 'MA5',
		data: calculateMA(5,rk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	}, {
		type: 'line',
		name: 'MA10',
		data: calculateMA(10,rk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
		type: 'line',
		name: 'MA20',
		data: calculateMA(20,rk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
		type: 'line',
		name: 'MA30',
		data: calculateMA(30,rk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
        name: 'Volumn',
        type: 'bar',
        xAxisIndex: 1,
        yAxisIndex: 1,
        animation:false,
        data: rk_volumn,
        itemStyle: {
	    	normal: {
		        color: function(params) {
		            var colorList;
		            if (rk_data.datas[params.dataIndex][1]>rk_data.datas[params.dataIndex][0]) {
		                colorList = config.col.up;
		            } else {
		                colorList = config.col.down;
		            }
		            return colorList;
		        },
		    }
	    }
    }]
};
var zk_option={
	backgroundColor: '#ffffff',
	tooltip: {
		trigger:'axis',
		triggerOn:'click',
		axisPointer: {
			type: 'cross',
			lable: {
				show: false,
			}
		},
		position: function (pos, params, el, elRect, size) {
	        var obj = {top: 10};
	        obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
	        return obj;
	    },
	    textStyle:{
	    	fontSize: 10,
	    },
		formatter: function (param) {
			var open,close,height,low,ma5,ma10,ma20,ma30,vol;
			var time = "<div>"+param[0].axisValueLabel +"</div>";//时间
			for(var i = 0;i < param.length;i++){
				if(param[i].seriesName=="k"){
					open="<div>"+param[i].marker+"开："+param[i].data[1]+"</div>";
					close="<div>"+param[i].marker+"收："+param[i].data[2]+"</div>";
					low="<div>"+param[i].marker+"高："+param[i].data[3]+"</div>";
					height="<div>"+param[i].marker+"低："+param[i].data[4]+"</div>";
				}else if(param[i].seriesName=="MA5"){
					ma5="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA10"){
					ma10="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA20"){
					ma20="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA30"){
					ma30="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="Volumn"){
					vol="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}
			}
			return "<div class='tooltip'>"+time+"<div class='t_row'>"+open+close+"</div><div class='t_row'>"+low+height+"</div><div class='t_row'>"+ma5+ma10+"</div><div class='t_row'>"+ma20+ma30+"</div>"+vol+"</div>";
		}
	},
	dataZoom: {
		show: false,
		xAxisIndex: [0, 1],
		type: 'inside',
		minValueSpan:60,
	    start: config.day_st,
		end: config.day_end,
	},
	axisPointer: {
		link: {
			xAxisIndex: 'all'
		},
		label: {
			backgroundColor: '#777'
		},
	},
	grid: [{
			left: '0',
			right:'0',
			top: '15',
			height: '71%'
		},{
			left: '0',
			right:'0',
			top: '80%',
			bottom:'10',
			height: '13%'
	}],
	xAxis: [{
		type : 'category',
		data: rk_data.times,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: { //x轴分割线
			show: false,
		},
		axisLine: { //x轴
			show:true,
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
		
		axisLabel:{//x轴刻度值
			show:false
		},
		axisPointer:{//不显示指示器文本
			label:{
				show:false,
			}
		}
		
	},{
		type : 'category',
		gridIndex: 1,
		data:rk_data.times,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: {//x轴分割线
			show: false,
			lineStyle:{
				color:'#2c3e50',
			},
		},
		axisLabel: {
			show: true,
			fontSize:10,
		},
		axisLine: {//x轴
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
	
	}],
	yAxis: [{
		axisLine: {//y轴
			show:false
		},
		splitLine:{//y轴分割线（横）
			show:false,
		},
		axisLabel:{
			inside:true,
			verticalAlign:'bottom',
			fontSize:10,
			color:"#000000"
		},
		max: function(value) {
		    return value.max+1;
		},
		min: function(value) {
		    return value.min-1;
		},
		position: 'left'//y轴的位置
	},{
		gridIndex: 1,
		splitLine: {
			show: false
		},
		max: function(value) {
		    return value.max+1000-1000;
		},
		axisLabel:{
			show:true,
			inside:true,
			showMinLabel:false,
			color:"#000000",
			fontSize:10,
			verticalAlign:'bottom',
		},
		axisLine: {
			show:false,
			lineStyle: {
				color: '#728681'
	
			}
		},
		splitNumber:1,
		position: 'left'
	}],
	series: [{
		type: 'k', //Candlestick 
		name:"k",
		itemStyle: {
			normal: {
				color: config.col.up, //阳线填充色
				color0: config.col.down,
				borderColor: config.col.up, //阳线边框色
				borderColor0: config.col.down
			}
		},
		data: rk_data.datas,
		animation:false,
		markPoint: {
			symbol:'rect',
			symbolSize:[10,10],
			label:{
				color:"#000000"
			},
			itemStyle:{
				color:'#ffffff',
			},
	        data: [{
	            name: 'highest value',
	            type: 'max',
	            valueDim: 'highest'
	        },{
	            name: 'lowest value',
	            type: 'min',
	            valueDim: 'lowest'
	        }]
	    }
	},{
		type: 'line',
		name: 'MA5',
		data: calculateMA(5,zk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	}, {
		type: 'line',
		name: 'MA10',
		data: calculateMA(10,zk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
		type: 'line',
		name: 'MA20',
		data: calculateMA(20,zk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
		type: 'line',
		name: 'MA30',
		data: calculateMA(30,zk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
	    name: 'Volumn',
	    type: 'bar',
	    xAxisIndex: 1,
	    yAxisIndex: 1,
	    animation:false,
	    data: zk_volumn,
	    itemStyle: {
	    	normal: {
		        color: function(params) {
		            var colorList;
		            if (zk_data.datas[params.dataIndex][1]>zk_data.datas[params.dataIndex][0]) {
		                colorList = config.col.up;
		            } else {
		                colorList = config.col.down;
		            }
		            return colorList;
		        },
		    }
	    }
	}]
}
var yk_option={
	backgroundColor: '#ffffff',
	tooltip: {
		trigger:'axis',
		triggerOn:'click',
		axisPointer: {
			type: 'cross',
			lable: {
				show: false,
			}
		},
		position: function (pos, params, el, elRect, size) {
	        var obj = {top: 10};
	        obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
	        return obj;
	    },
	    textStyle:{
	    	fontSize: 10,
	    },
		formatter: function (param) {
			var open,close,height,low,ma5,ma10,ma20,ma30,vol;
			var time = "<div>"+param[0].axisValueLabel +"</div>";//时间
			for(var i = 0;i < param.length;i++){
				if(param[i].seriesName=="k"){
					open="<div>"+param[i].marker+"开："+param[i].data[1]+"</div>";
					close="<div>"+param[i].marker+"收："+param[i].data[2]+"</div>";
					low="<div>"+param[i].marker+"高："+param[i].data[3]+"</div>";
					height="<div>"+param[i].marker+"低："+param[i].data[4]+"</div>";
				}else if(param[i].seriesName=="MA5"){
					ma5="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA10"){
					ma10="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA20"){
					ma20="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="MA30"){
					ma30="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}else if(param[i].seriesName=="Volumn"){
					vol="<div>"+param[i].marker+param[i].seriesName+"："+param[i].data+"</div>";
				}
			}
			return "<div class='tooltip'>"+time+"<div class='t_row'>"+open+close+"</div><div class='t_row'>"+low+height+"</div><div class='t_row'>"+ma5+ma10+"</div><div class='t_row'>"+ma20+ma30+"</div>"+vol+"</div>";
		}
	},
	dataZoom: {
		show: false,
		xAxisIndex: [0, 1],
		type: 'inside',
		minValueSpan:60,
	    start: config.day_st,
		end: config.day_end,
	},
	axisPointer: {
		link: {
			xAxisIndex: 'all'
		},
		label: {
			backgroundColor: '#777'
		},
	},
	grid: [{
			left: '0',
			right:'0',
			top: '15',
			height: '71%'
		},{
			left: '0',
			right:'0',
			top: '80%',
			bottom:'10',
			height: '13%'
	}],
	xAxis: [{
		type : 'category',
		data: rk_data.times,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: { //x轴分割线
			show: false,
		},
		axisLine: { //x轴
			show:true,
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
		
		axisLabel:{//x轴刻度值
			show:false
		},
		axisPointer:{//不显示指示器文本
			label:{
				show:false,
			}
		}
		
	},{
		type : 'category',
		gridIndex: 1,
		data:rk_data.times,
		scale: true,
		boundaryGap: true,//已刻度线=刻度值
		splitLine: {//x轴分割线
			show: false,
			lineStyle:{
				color:'#2c3e50',
			},
		},
		axisLabel: {
			show: true,
			fontSize:10,
		},
		axisLine: {//x轴
			onZero: false,
			lineStyle: {
				color: '#9b9b9b',
			}
		},
		axisTick:{//x轴坐标刻度
			show:false
		},
	
	}],
	yAxis: [{
		axisLine: {//y轴
			show:false
		},
		splitLine:{//y轴分割线（横）
			show:false,
		},
		axisLabel:{
			inside:true,
			verticalAlign:'bottom',
			fontSize:10,
			color:"#000000"
		},
		max: function(value) {
		    return value.max+1;
		},
		min: function(value) {
		    return value.min-1;
		},
		position: 'left'//y轴的位置
	},{
		gridIndex: 1,
		splitLine: {
			show: false
		},
		max: function(value) {
		    return value.max+1000-1000;
		},
		axisLabel:{
			show:true,
			inside:true,
			showMinLabel:false,
			color:"#000000",
			fontSize:10,
			verticalAlign:'bottom',
		},
		axisLine: {
			show:false,
			lineStyle: {
				color: '#728681'
	
			}
		},
		splitNumber:1,
		position: 'left'
	}],
	series: [{
		type: 'k', //Candlestick 
		name:"k",
		itemStyle: {
			normal: {
				color: config.col.up, //阳线填充色
				color0: config.col.down,
				borderColor: config.col.up, //阳线边框色
				borderColor0: config.col.down
			}
		},
		data: rk_data.datas,
		animation:false,
		markPoint: {
			symbol:'rect',
			symbolSize:[10,10],
			label:{
				color:"#000000"
			},
			itemStyle:{
				color:'#ffffff',
			},
	        data: [{
	            name: 'highest value',
	            type: 'max',
	            valueDim: 'highest'
	        },{
	            name: 'lowest value',
	            type: 'min',
	            valueDim: 'lowest'
	        }]
	    }
	},{
		type: 'line',
		name: 'MA5',
		data: calculateMA(5,yk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	}, {
		type: 'line',
		name: 'MA10',
		data: calculateMA(10,yk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
		type: 'line',
		name: 'MA20',
		data: calculateMA(20,yk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
		type: 'line',
		name: 'MA30',
		data: calculateMA(30,yk_data),
		smooth: true,
		symbolSize: 1,
		showSymbol: false,
		animation:false,
		lineStyle: {
			normal: {
				color: config.col.m5,
				width: 1
			}
		},
		itemStyle: {
			normal: {
				color: config.col.m5
			}
		}
	},{
	    name: 'Volumn',
	    type: 'bar',
	    xAxisIndex: 1,
	    yAxisIndex: 1,
	    animation:false,
	    data: yk_volumn,
	    itemStyle: {
	    	normal: {
		        color: function(params) {
		            var colorList;
		            if (yk_data.datas[params.dataIndex][1]>yk_data.datas[params.dataIndex][0]) {
		                colorList = config.col.up;
		            } else {
		                colorList = config.col.down;
		            }
		            return colorList;
		        },
		    }
	    }
	}]
}
main_echart.setOption(fs_option);